package mspbots.next.ticket.core.data.rules;

import org.springframework.data.r2dbc.repository.R2dbcRepository;
import org.springframework.stereotype.Repository;
import reactor.core.publisher.Flux;

/**
 * com.mspbots.web.security.UserRepository
 *
 * @author Alex bob(https://github.com/vnobo)
 * @date Created by 2019/8/30
 */
@Repository
public interface RulesRepository extends R2dbcRepository<Rule, Integer> {

    /**
     * find by tenant id all
     *
     * @param tenantId tenant id
     * @return tenant all id
     */
    Flux<Rule> findByTenantId(Long tenantId);

}
